package Demo1;

public class Test {
    public static void main(String[] args) {
        Manager manager1=new Manager("001","王经理",'男',
                6,8000,500,"管理");
        Manager manager2=new Manager("002","吴经理",'女',
                8,10000,500,"销售");
        System.out.println(manager1.toString());
        System.out.println(manager1.getPaid());
        System.out.println(manager2.toString());
        System.out.println(manager2.getPaid());
        Staff staff1=new Employee("101","小明",'男',
                2,5000,300,"销售",2);
        Staff staff2=new Employee("102","小红",'女',
                3,6000,400,"程序员",3);
        System.out.println(staff1.toString());
        System.out.println(staff1.getPaid());
        System.out.println(staff2.toString());
        System.out.println(staff2.getPaid());
    }
}
